<template>
  <el-config-provider :locale="local.locale === 'en' ? en : zhCn">
    <Header />
    <slot></slot>
    <Footer />
  </el-config-provider>
</template>

<script setup lang="ts">
import zhCn from 'element-plus/es/locale/lang/zh-cn'
import en from 'element-plus/es/locale/lang/en'
import Header from '~/components/layout/Header.vue'
import Footer from '~/components/layout/Footer.vue'
import useLocal from '~/store/useLocal'
// setHeadInfo({
//   script: [
//     { src: '/assets/js/flexible.min' }
//   ]
// })
const local = useLocal()
</script>